<?php


abstract class BaseVwOne extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $id;


	
	protected $member_id;


	
	protected $eronfaure = '';


	
	protected $eronfaure_s = '';


	
	protected $ordelles = '';


	
	protected $jugner = '';


	
	protected $jugner_s = '';


	
	protected $ranpstomb = '';


	
	protected $ngustaberg = '';


	
	protected $ngustaberg_s = '';


	
	protected $gusgen = '';


	
	protected $pashhow = '';


	
	protected $pashhow_s = '';


	
	protected $dangruf = '';


	
	protected $wsartabarta = '';


	
	protected $wsartabarta_s = '';


	
	protected $shakhrami = '';


	
	protected $meriphataud = '';


	
	protected $meriphataud_s = '';


	
	protected $outhorutot = '';

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getId()
	{

		return $this->id;
	}

	
	public function getMemberId()
	{

		return $this->member_id;
	}

	
	public function getEronfaure()
	{

		return $this->eronfaure;
	}

	
	public function getEronfaureS()
	{

		return $this->eronfaure_s;
	}

	
	public function getOrdelles()
	{

		return $this->ordelles;
	}

	
	public function getJugner()
	{

		return $this->jugner;
	}

	
	public function getJugnerS()
	{

		return $this->jugner_s;
	}

	
	public function getRanpstomb()
	{

		return $this->ranpstomb;
	}

	
	public function getNgustaberg()
	{

		return $this->ngustaberg;
	}

	
	public function getNgustabergS()
	{

		return $this->ngustaberg_s;
	}

	
	public function getGusgen()
	{

		return $this->gusgen;
	}

	
	public function getPashhow()
	{

		return $this->pashhow;
	}

	
	public function getPashhowS()
	{

		return $this->pashhow_s;
	}

	
	public function getDangruf()
	{

		return $this->dangruf;
	}

	
	public function getWsartabarta()
	{

		return $this->wsartabarta;
	}

	
	public function getWsartabartaS()
	{

		return $this->wsartabarta_s;
	}

	
	public function getShakhrami()
	{

		return $this->shakhrami;
	}

	
	public function getMeriphataud()
	{

		return $this->meriphataud;
	}

	
	public function getMeriphataudS()
	{

		return $this->meriphataud_s;
	}

	
	public function getOuthorutot()
	{

		return $this->outhorutot;
	}

	
	public function setId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			$this->modifiedColumns[] = VwOnePeer::ID;
		}

	} 
	
	public function setMemberId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->member_id !== $v) {
			$this->member_id = $v;
			$this->modifiedColumns[] = VwOnePeer::MEMBER_ID;
		}

	} 
	
	public function setEronfaure($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->eronfaure !== $v || $v === '') {
			$this->eronfaure = $v;
			$this->modifiedColumns[] = VwOnePeer::ERONFAURE;
		}

	} 
	
	public function setEronfaureS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->eronfaure_s !== $v || $v === '') {
			$this->eronfaure_s = $v;
			$this->modifiedColumns[] = VwOnePeer::ERONFAURE_S;
		}

	} 
	
	public function setOrdelles($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ordelles !== $v || $v === '') {
			$this->ordelles = $v;
			$this->modifiedColumns[] = VwOnePeer::ORDELLES;
		}

	} 
	
	public function setJugner($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->jugner !== $v || $v === '') {
			$this->jugner = $v;
			$this->modifiedColumns[] = VwOnePeer::JUGNER;
		}

	} 
	
	public function setJugnerS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->jugner_s !== $v || $v === '') {
			$this->jugner_s = $v;
			$this->modifiedColumns[] = VwOnePeer::JUGNER_S;
		}

	} 
	
	public function setRanpstomb($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ranpstomb !== $v || $v === '') {
			$this->ranpstomb = $v;
			$this->modifiedColumns[] = VwOnePeer::RANPSTOMB;
		}

	} 
	
	public function setNgustaberg($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ngustaberg !== $v || $v === '') {
			$this->ngustaberg = $v;
			$this->modifiedColumns[] = VwOnePeer::NGUSTABERG;
		}

	} 
	
	public function setNgustabergS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ngustaberg_s !== $v || $v === '') {
			$this->ngustaberg_s = $v;
			$this->modifiedColumns[] = VwOnePeer::NGUSTABERG_S;
		}

	} 
	
	public function setGusgen($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->gusgen !== $v || $v === '') {
			$this->gusgen = $v;
			$this->modifiedColumns[] = VwOnePeer::GUSGEN;
		}

	} 
	
	public function setPashhow($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->pashhow !== $v || $v === '') {
			$this->pashhow = $v;
			$this->modifiedColumns[] = VwOnePeer::PASHHOW;
		}

	} 
	
	public function setPashhowS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->pashhow_s !== $v || $v === '') {
			$this->pashhow_s = $v;
			$this->modifiedColumns[] = VwOnePeer::PASHHOW_S;
		}

	} 
	
	public function setDangruf($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->dangruf !== $v || $v === '') {
			$this->dangruf = $v;
			$this->modifiedColumns[] = VwOnePeer::DANGRUF;
		}

	} 
	
	public function setWsartabarta($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->wsartabarta !== $v || $v === '') {
			$this->wsartabarta = $v;
			$this->modifiedColumns[] = VwOnePeer::WSARTABARTA;
		}

	} 
	
	public function setWsartabartaS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->wsartabarta_s !== $v || $v === '') {
			$this->wsartabarta_s = $v;
			$this->modifiedColumns[] = VwOnePeer::WSARTABARTA_S;
		}

	} 
	
	public function setShakhrami($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->shakhrami !== $v || $v === '') {
			$this->shakhrami = $v;
			$this->modifiedColumns[] = VwOnePeer::SHAKHRAMI;
		}

	} 
	
	public function setMeriphataud($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->meriphataud !== $v || $v === '') {
			$this->meriphataud = $v;
			$this->modifiedColumns[] = VwOnePeer::MERIPHATAUD;
		}

	} 
	
	public function setMeriphataudS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->meriphataud_s !== $v || $v === '') {
			$this->meriphataud_s = $v;
			$this->modifiedColumns[] = VwOnePeer::MERIPHATAUD_S;
		}

	} 
	
	public function setOuthorutot($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->outhorutot !== $v || $v === '') {
			$this->outhorutot = $v;
			$this->modifiedColumns[] = VwOnePeer::OUTHORUTOT;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->id = $rs->getInt($startcol + 0);

			$this->member_id = $rs->getInt($startcol + 1);

			$this->eronfaure = $rs->getString($startcol + 2);

			$this->eronfaure_s = $rs->getString($startcol + 3);

			$this->ordelles = $rs->getString($startcol + 4);

			$this->jugner = $rs->getString($startcol + 5);

			$this->jugner_s = $rs->getString($startcol + 6);

			$this->ranpstomb = $rs->getString($startcol + 7);

			$this->ngustaberg = $rs->getString($startcol + 8);

			$this->ngustaberg_s = $rs->getString($startcol + 9);

			$this->gusgen = $rs->getString($startcol + 10);

			$this->pashhow = $rs->getString($startcol + 11);

			$this->pashhow_s = $rs->getString($startcol + 12);

			$this->dangruf = $rs->getString($startcol + 13);

			$this->wsartabarta = $rs->getString($startcol + 14);

			$this->wsartabarta_s = $rs->getString($startcol + 15);

			$this->shakhrami = $rs->getString($startcol + 16);

			$this->meriphataud = $rs->getString($startcol + 17);

			$this->meriphataud_s = $rs->getString($startcol + 18);

			$this->outhorutot = $rs->getString($startcol + 19);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 20; 
		} catch (Exception $e) {
			throw new PropelException("Error populating VwOne object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwOnePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			VwOnePeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwOnePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = VwOnePeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += VwOnePeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = VwOnePeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwOnePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getId();
				break;
			case 1:
				return $this->getMemberId();
				break;
			case 2:
				return $this->getEronfaure();
				break;
			case 3:
				return $this->getEronfaureS();
				break;
			case 4:
				return $this->getOrdelles();
				break;
			case 5:
				return $this->getJugner();
				break;
			case 6:
				return $this->getJugnerS();
				break;
			case 7:
				return $this->getRanpstomb();
				break;
			case 8:
				return $this->getNgustaberg();
				break;
			case 9:
				return $this->getNgustabergS();
				break;
			case 10:
				return $this->getGusgen();
				break;
			case 11:
				return $this->getPashhow();
				break;
			case 12:
				return $this->getPashhowS();
				break;
			case 13:
				return $this->getDangruf();
				break;
			case 14:
				return $this->getWsartabarta();
				break;
			case 15:
				return $this->getWsartabartaS();
				break;
			case 16:
				return $this->getShakhrami();
				break;
			case 17:
				return $this->getMeriphataud();
				break;
			case 18:
				return $this->getMeriphataudS();
				break;
			case 19:
				return $this->getOuthorutot();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwOnePeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getId(),
			$keys[1] => $this->getMemberId(),
			$keys[2] => $this->getEronfaure(),
			$keys[3] => $this->getEronfaureS(),
			$keys[4] => $this->getOrdelles(),
			$keys[5] => $this->getJugner(),
			$keys[6] => $this->getJugnerS(),
			$keys[7] => $this->getRanpstomb(),
			$keys[8] => $this->getNgustaberg(),
			$keys[9] => $this->getNgustabergS(),
			$keys[10] => $this->getGusgen(),
			$keys[11] => $this->getPashhow(),
			$keys[12] => $this->getPashhowS(),
			$keys[13] => $this->getDangruf(),
			$keys[14] => $this->getWsartabarta(),
			$keys[15] => $this->getWsartabartaS(),
			$keys[16] => $this->getShakhrami(),
			$keys[17] => $this->getMeriphataud(),
			$keys[18] => $this->getMeriphataudS(),
			$keys[19] => $this->getOuthorutot(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwOnePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setId($value);
				break;
			case 1:
				$this->setMemberId($value);
				break;
			case 2:
				$this->setEronfaure($value);
				break;
			case 3:
				$this->setEronfaureS($value);
				break;
			case 4:
				$this->setOrdelles($value);
				break;
			case 5:
				$this->setJugner($value);
				break;
			case 6:
				$this->setJugnerS($value);
				break;
			case 7:
				$this->setRanpstomb($value);
				break;
			case 8:
				$this->setNgustaberg($value);
				break;
			case 9:
				$this->setNgustabergS($value);
				break;
			case 10:
				$this->setGusgen($value);
				break;
			case 11:
				$this->setPashhow($value);
				break;
			case 12:
				$this->setPashhowS($value);
				break;
			case 13:
				$this->setDangruf($value);
				break;
			case 14:
				$this->setWsartabarta($value);
				break;
			case 15:
				$this->setWsartabartaS($value);
				break;
			case 16:
				$this->setShakhrami($value);
				break;
			case 17:
				$this->setMeriphataud($value);
				break;
			case 18:
				$this->setMeriphataudS($value);
				break;
			case 19:
				$this->setOuthorutot($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwOnePeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setMemberId($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setEronfaure($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setEronfaureS($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setOrdelles($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setJugner($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setJugnerS($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setRanpstomb($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setNgustaberg($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setNgustabergS($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setGusgen($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setPashhow($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setPashhowS($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setDangruf($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setWsartabarta($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setWsartabartaS($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setShakhrami($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setMeriphataud($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setMeriphataudS($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setOuthorutot($arr[$keys[19]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(VwOnePeer::DATABASE_NAME);

		if ($this->isColumnModified(VwOnePeer::ID)) $criteria->add(VwOnePeer::ID, $this->id);
		if ($this->isColumnModified(VwOnePeer::MEMBER_ID)) $criteria->add(VwOnePeer::MEMBER_ID, $this->member_id);
		if ($this->isColumnModified(VwOnePeer::ERONFAURE)) $criteria->add(VwOnePeer::ERONFAURE, $this->eronfaure);
		if ($this->isColumnModified(VwOnePeer::ERONFAURE_S)) $criteria->add(VwOnePeer::ERONFAURE_S, $this->eronfaure_s);
		if ($this->isColumnModified(VwOnePeer::ORDELLES)) $criteria->add(VwOnePeer::ORDELLES, $this->ordelles);
		if ($this->isColumnModified(VwOnePeer::JUGNER)) $criteria->add(VwOnePeer::JUGNER, $this->jugner);
		if ($this->isColumnModified(VwOnePeer::JUGNER_S)) $criteria->add(VwOnePeer::JUGNER_S, $this->jugner_s);
		if ($this->isColumnModified(VwOnePeer::RANPSTOMB)) $criteria->add(VwOnePeer::RANPSTOMB, $this->ranpstomb);
		if ($this->isColumnModified(VwOnePeer::NGUSTABERG)) $criteria->add(VwOnePeer::NGUSTABERG, $this->ngustaberg);
		if ($this->isColumnModified(VwOnePeer::NGUSTABERG_S)) $criteria->add(VwOnePeer::NGUSTABERG_S, $this->ngustaberg_s);
		if ($this->isColumnModified(VwOnePeer::GUSGEN)) $criteria->add(VwOnePeer::GUSGEN, $this->gusgen);
		if ($this->isColumnModified(VwOnePeer::PASHHOW)) $criteria->add(VwOnePeer::PASHHOW, $this->pashhow);
		if ($this->isColumnModified(VwOnePeer::PASHHOW_S)) $criteria->add(VwOnePeer::PASHHOW_S, $this->pashhow_s);
		if ($this->isColumnModified(VwOnePeer::DANGRUF)) $criteria->add(VwOnePeer::DANGRUF, $this->dangruf);
		if ($this->isColumnModified(VwOnePeer::WSARTABARTA)) $criteria->add(VwOnePeer::WSARTABARTA, $this->wsartabarta);
		if ($this->isColumnModified(VwOnePeer::WSARTABARTA_S)) $criteria->add(VwOnePeer::WSARTABARTA_S, $this->wsartabarta_s);
		if ($this->isColumnModified(VwOnePeer::SHAKHRAMI)) $criteria->add(VwOnePeer::SHAKHRAMI, $this->shakhrami);
		if ($this->isColumnModified(VwOnePeer::MERIPHATAUD)) $criteria->add(VwOnePeer::MERIPHATAUD, $this->meriphataud);
		if ($this->isColumnModified(VwOnePeer::MERIPHATAUD_S)) $criteria->add(VwOnePeer::MERIPHATAUD_S, $this->meriphataud_s);
		if ($this->isColumnModified(VwOnePeer::OUTHORUTOT)) $criteria->add(VwOnePeer::OUTHORUTOT, $this->outhorutot);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(VwOnePeer::DATABASE_NAME);

		$criteria->add(VwOnePeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setMemberId($this->member_id);

		$copyObj->setEronfaure($this->eronfaure);

		$copyObj->setEronfaureS($this->eronfaure_s);

		$copyObj->setOrdelles($this->ordelles);

		$copyObj->setJugner($this->jugner);

		$copyObj->setJugnerS($this->jugner_s);

		$copyObj->setRanpstomb($this->ranpstomb);

		$copyObj->setNgustaberg($this->ngustaberg);

		$copyObj->setNgustabergS($this->ngustaberg_s);

		$copyObj->setGusgen($this->gusgen);

		$copyObj->setPashhow($this->pashhow);

		$copyObj->setPashhowS($this->pashhow_s);

		$copyObj->setDangruf($this->dangruf);

		$copyObj->setWsartabarta($this->wsartabarta);

		$copyObj->setWsartabartaS($this->wsartabarta_s);

		$copyObj->setShakhrami($this->shakhrami);

		$copyObj->setMeriphataud($this->meriphataud);

		$copyObj->setMeriphataudS($this->meriphataud_s);

		$copyObj->setOuthorutot($this->outhorutot);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new VwOnePeer();
		}
		return self::$peer;
	}

} 